<?php

/**
 * Charstatus form base class.
 *
 * @method Charstatus getObject() Returns the current form's model object
 *
 * @package    rpgcom
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseCharstatusForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'idStatus'   => new sfWidgetFormInputHidden(),
      'nomeStatus' => new sfWidgetFormInputText(),
      'inativa'    => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'idStatus'   => new sfValidatorPropelChoice(array('model' => 'Charstatus', 'column' => 'idStatus', 'required' => false)),
      'nomeStatus' => new sfValidatorString(array('max_length' => 30)),
      'inativa'    => new sfValidatorInteger(array('min' => -128, 'max' => 127)),
    ));

    $this->widgetSchema->setNameFormat('charstatus[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Charstatus';
  }


}
